# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=a2jmidid
pkgver=9
pkgrel=2
pkgdesc="ALSA sequencer to JACK MIDI bridging"
url="https://github.com/jackaudio/a2jmidid"
arch="all"
license="GPL-2.0-or-later"
depends="py3-dbus"
makedepends="meson libexecinfo-dev jack-dev alsa-lib-dev dbus-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jackaudio/a2jmidid/archive/$pkgver.tar.gz
	check-for-libc-backtrace.patch
	riscv.patch"
options="!check" # No testsuite

build() {
	abuild-meson . build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
5bd13b6904ed68c5bfe40ca516fd49b7eb4d4a946b9908ee04687265848734c8e1a81579f0f1a5bd0752595be8858dc748da10487b7f366394c09a5ffc7d5e5c  a2jmidid-9.tar.gz
0639c8f2070a8af2872a073c255f0d4dca709363457c726fc0824a6574ca479a78a079a2f71dac18b2f0fa738a8f96ce261984a88687ad804f45a0aad81a869f  check-for-libc-backtrace.patch
4664c339daf6e4342ff42ed884fe2b4e57c7ad08c86ac5b01ac928be35e6b143f9816736df9845a2c95855001249af7187aefdefc680176e9286c2e82064758a  riscv.patch
"
